<template>
  <div class="hello">
    
    <showCardRouter v-for="(item, index) in routerLink" :key="index" :showTitle="item.showTitle" :link="item.link"></showCardRouter>
  </div>
</template>

<script>
import showCardRouter from "./index/showCardRouter"

export default {
  name: 'Index',
  props: {
    msg: String
  },
  components: {
    showCardRouter
  },
  data(){
    return {
      routerLink:[
        {
          showTitle: '旋转时钟',
          link: '/clock'
        },
        {
          showTitle: '计算四位数',
          link: '/count'
        },
        {
          showTitle: '3D轮播图',
          link: '/banner3d'
        }
      ]
    }
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
h3 {
  margin: 40px 0 0;
}
ul {
  list-style-type: none;
  padding: 0;
}
li {
  display: inline-block;
  margin: 0 10px;
}
a {
  color: #42b983;
}
</style>
